package priv.yiyuan.example.design.proxy;

/**
 * 文件操作装饰器
 * <p>
 * 装饰器基类
 *
 * @author YiYuan
 * @data 2025/9/25
 * @apoNote
 */
public abstract class FileOperationDecorator implements FileOperation {

    protected FileOperation decoratedFileOperation;

    public FileOperationDecorator(FileOperation decoratedFileOperation) {
        this.decoratedFileOperation = decoratedFileOperation;
    }

    @Override
    public void write(String filePath, String content) {
        decoratedFileOperation.write(filePath, content);
    }

    @Override
    public String read(String filePath) {
        return decoratedFileOperation.read(filePath);
    }

}
